package com.swf.seed.algorithms.util;

public class SortUtil {
	public static String i2s(int[] is){
		StringBuilder stringBuilder = new StringBuilder();
		for (int i=0;i<is.length;i++){
			stringBuilder.append(",").append(is[i]);
		}
		return "["+stringBuilder.substring(1)+"]";
	}
	
	public static void swap(int[] ori,int i,int j){
		int temp = ori[i];
		ori[i] = ori[j];
		ori[j] = temp;
	}
}
